#ifndef USER_H
#define USER_H
#include<string>
#include<iostream>
using namespace std;

class User
{
    public:
        User(string loginName="XXX",string loginPassword="666666");
        virtual ~User(){};
    void setUser();
    void showUser();
    void setLoginName(string loginname);
    void setLoginPassword(string loginPassword);
    string getLoginName();
    string getLoginPassword();
    void readFromFile(fstream &);
    void writeToFile(fstream &)const;

    protected:
    string loginName;
    string loginPassword;

};

#endif // USER_H
